package com.demo.config.custom;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>读取文件上传/下载相关配置</p>
 *@author zwy
 *@date 2023/8/10 23:00
*/
@Component
@ConfigurationProperties(prefix = "customconfig")
@Data
public class CustomConfig {
    /**
     * 文件上传路径
     */
    private String uploadPath;

    /**
     * 文件下载路径
     */
    private String downloadPath;

    /**
     * 单个文件上传大小
     */
    private long uploadMaxSize;
    /**
     * 用户是否唯一登录 true:是，false:否
     */
    private boolean uniqueLogin;
}
